# coding=utf-8

import numpy as np

A = np.arange(3, 15).reshape((3, 4))
# print(A)
# print(A[2][1])
# print(A[1, 1:2])
# print(A[1, 1:3])
print(A.flatten())
for row in A.flat:
    print(row)
